#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSqlQueryModel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void showData();

protected:
    void showEvent(QShowEvent *event) override;

private slots:
    void on_addButton_clicked();

    void on_editButton_clicked();

    void on_queryButton_clicked();


    void on_deleteButton_clicked();

private:
    Ui::MainWindow *ui;
    QSqlQueryModel *queryModel;
};

#endif // MAINWINDOW_H
